﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Helpers
{
    class SystemParamsHelper
    {
        public static string DBConnectionString;

        public static bool ThreadControl = true;
        public static bool ChargerControl = true;
        public static bool TaskControl = true;

        public static int ElevatorPort = 9000;
        public static int CallBoxPort = 9000;
        public static int AutoDoorPort = 9000;
        public static int LoudspeakerPort = 9200;
        public static int ChargerPort = 9000;

        public static string AgvHeadData = "5A 01 00 01 00 00 00 16 04 4C 00 00 00 00 00 00";
        public static string AgvHeadDataadd = "5A 01 00 01 00 00 00 15 07 E6 00 00 00 00 00 00";

        public static string UserName_now = "";
        public static string PassWord_now = "";
        public static int UserType_now = 0;

        public static int AgvStateApiPort = 19204;
        public static int AgvControlApiPort = 19205;
        public static int AgvNavigationApiPort = 19206;
        public static int AgvConfigurationApiPort = 19207;
        public static int AgvElseApiPort = 19210;

        public static bool ErrorLogControl = true;

        #region 通讯协议数据长度
        public static int ProtocolLength_AGV = 26;
        public static int ProtocolLength_Charger = 7;
        public static int ProtocolLength_Elevator = 12;
        public static int ProtocolLength_ElevatorOther = 11;
        public static int ProtocolLength_Elevator_login = 10;
        public static int ProtocolLength_CallBox = 6;
        public static int ProtocolLength_AutoDoor = 8;
        public static int ProtocolLength_Loudspeaker = 9;
        #endregion

        /// <summary>
        /// Socket.Receive调用超时的时间长度
        /// </summary>
        public static int SocketReceiveTimeout = 10000;
        /// <summary>
        /// 设备离线时间
        /// </summary>
        public static int OffLineTimeout = 100;

        public static float AGV_Low_Voltage = 50.60f;
        public static float AGV_High_Voltage = 57.00f;
        public static double AGV_Voltage_FloatValue = 60;//浮动的电压值，充电电压上下限应大于此值

   


        public static string ImportHelperPath = @"D:\YWS\工作\6_项目及相关\4_22深圳维珍妮\越南\ImportHelper\ImportHelper\bin\Debug\ImportHelper.exe";
    }
}
